package com.example.mybatisdemo1.mapper;

import com.example.mybatisdemo1.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.boot.autoconfigure.security.SecurityProperties;

import java.util.List;

@Mapper
public interface UserMapper {
    //根据id查询用户对象
    List<User> getAllUser(String type);

    User getUserById(int id);

    List<User> queryUserByPassword(@Param("username") String username, @Param("password") String password);
}
